<template>
	<view class="zxitem" @click="gopage()">
		<!-- {{ item }} -->
		<view class="zxitem-title">
			<view class="zxitem-title-text">
				{{item.title}}
			</view>
			<view class="zxitem-title-info u-flex-y-center">
				<view class="">
					{{ $u.timeFormat(item.createTime,'yyyy年mm月dd日') }}
				</view>
				<view class="u-flex-xy-center" style="padding-left: 10rpx"><u-icon name="eye" color="#999" size="12"></u-icon>浏览量:
					{{ item.pv }} </view>
			</view>
		</view>
		<view class="zxitem-img u-flex-xy-center">
			<u--image :showLoading="true" :src="item.coverImage" width="100rpx" height="100rpx" radius="4"></u--image>
		</view>
	</view>
</template>
<script>
	import logo from "@/static/logo.png"
	import qs from "qs"
	export default {
		props: {
			item: {
				type: Object,
				default: () => {
					return {}
				}
			}
		},
		data() {
			return {
				logo: logo

			}
		},
		methods: {
			gopage() {
				uni.navigateTo({
					url: "/pages/parse/parse?" + qs.stringify({
						type: 'market',
						id: this.item.id
					}),
				});
			}
		}
	}
</script>
<style lang="scss" scoped>
	.zxitem {
		display: flex;
		padding: 20rpx 20rpx;
		position: relative;

		.zxitem-title {
			flex: 1;
			width: 0;
			margin-right: 10px;
			display: flex;
			flex-direction: column;
			justify-content: space-between;

			.zxitem-title-text {
				font-size: 16px;
				color: #333;
				margin-bottom: 10px;
			}

			.zxitem-title-info {
				font-size: 12px;
				color: #999;
				// justify-content: center;
			}
		}

		.zxitem-img {
			width: 140rpx;
			height: 100rpx;
		}

		&::after {
			content: '';
			position: absolute;
			bottom: 0;
			left: 20rpx;
			right: 20rpx;
			border-bottom: 1px solid #eee;
		}
	}
</style>